package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.CommunicationService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/communication/")
public class CommunicationController {

  @Autowired
  CommunicationService communicationService;
/**
   * D3-执行异步初始化单个评价模板位置消息数量(公共)
   */
    @PostMapping("implementAsynSingleEvaTempMsgLocQtyCom")
    public OkrResult<ImplementAsynSingleEvaTempMsgLocQtyComRespDto> implementAsynSingleEvaTempMsgLocQtyCom(@RequestBody @Validated ImplementAsynSingleEvaTempMsgLocQtyComReqDto reqDTO){
    return OkrResult.success(communicationService.implementAsynSingleEvaTempMsgLocQtyCom(reqDTO));
    }
/**
   * D3-执行初始化单个评价模板位置消息数量(公共)
   */
    @PostMapping("implementSingleEvaTempMsgLocQtyCom")
    public OkrResult<ImplementSingleEvaTempMsgLocQtyComRespDto> implementSingleEvaTempMsgLocQtyCom(@RequestBody @Validated ImplementSingleEvaTempMsgLocQtyComReqDto reqDTO){
    return OkrResult.success(communicationService.implementSingleEvaTempMsgLocQtyCom(reqDTO));
    }
/**
   * D3执行分享到部门大家想法(公共)
   */
    @PostMapping("implementShareEveryoneIdeasDeptCom")
    public OkrResult<ImplementShareEveryoneIdeasDeptComRespDto> implementShareEveryoneIdeasDeptCom(@RequestBody @Validated ImplementShareEveryoneIdeasDeptComReqDto reqDTO){
    return OkrResult.success(communicationService.implementShareEveryoneIdeasDeptCom(reqDTO));
    }
/**
   * D3分析高中基层回退消息模板(公共)
   */
    @PostMapping("analysisTopMidBaiscBackMsgTempCom")
    public OkrResult<AnalysisTopMidBaiscBackMsgTempComRespDto> analysisTopMidBaiscBackMsgTempCom(@RequestBody @Validated AnalysisTopMidBaiscBackMsgTempComReqDto reqDTO){
    return OkrResult.success(communicationService.analysisTopMidBaiscBackMsgTempCom(reqDTO));
    }
/**
   * D3执行预制内容发两人会话消息(公共)
   */
    @PostMapping("implementPrefabricateContentSendTwoPersonConvMsgCom")
    public OkrResult<ImplementPrefabricateContentSendTwoPersonConvMsgComRespDto> implementPrefabricateContentSendTwoPersonConvMsgCom(@RequestBody @Validated ImplementPrefabricateContentSendTwoPersonConvMsgComReqDto reqDTO){
    return OkrResult.success(communicationService.implementPrefabricateContentSendTwoPersonConvMsgCom(reqDTO));
    }
}
